package ooday01exercise;

public class Car {
    String brand;
    String color;
    double price;
    int capacity;
    String power;

    Car(){}//构造函数
    Car(String brand,String color,double price,int capacity,String power){
        this.brand=brand;
        this.color=color;
        this.price= price;
        this.capacity = capacity;
        this.power = power;
    }
    void start(){
        System.out.println("一辆"+color+"色"+capacity+"座的"+power+brand+"车售价"+price+"元了");
    }
    void run(){
        System.out.println("一辆"+color+"色"+capacity+"座的"+power+brand+"车售价"+price+"元了111");
    }
    void stop(){
        System.out.println("一辆"+color+"色"+capacity+"座的"+power+brand+"车售价"+price+"元了11111111111111111");
    }
}
